<template>
    <div id="order_box">
      <el-divider content-position="left"><strong><ins>{{order_title}}</ins></strong></el-divider>
      <el-form ref="form" :model="search_form" label-width="130px" style="padding: 0 20px">
        <el-form-item >
          <template slot="label">
            <div class="flex-layout">
              <div class="font-bold fs-25">{{search_title}}</div>
              <div>[{{order_num}}]</div>
            </div>
          </template>
          <el-input v-model="search_form.title" placeholder="请输入要查找的关键字" style="width: 450px"></el-input>
          <el-button @click="search_fun">点击查询</el-button>
        </el-form-item>
      </el-form>
      <el-divider content-position="right"><strong><ins>{{search_title}}</ins></strong></el-divider>
      <div class="order_main">
        <el-collapse accordion>
          <el-collapse-item>
            <template slot="title">
              购买记录 <i class="header-icon el-icon-info"></i>
            </template>
              <div class="flex-layout justify-between">
                <div style="width: 150px">
                  <img :src="require('@/assets/img/basketball/'+ order_Info[0].cimg)" style="width: 150px">
                </div>
                <div style="width: 400px;text-align: left;font-size: 20px">
                  商品数量：{{order_Info[0].ccount}}<br>
                  商品名称：{{order_Info[0].cname}}<br>
                  商品类型：{{order_Info[0].csort}}<br>
                  单品总价：{{order_Info[0].ctotalPrice}}<br>
                </div>
              </div>
            <h2 style="text-align: right;border-top: 1px solid gainsboro">商品总价：{{order_Info[0].ctotalPrice}}</h2>
          </el-collapse-item>
        </el-collapse>
      </div>
    </div>
</template>

<script>
export default {
  name: 'Order',
  data () {
    return {
      order_title: '订单管理',
      search_form: {
        title: null
      },
      search_title: '全部订单',
      order_num: 1,
      order_Info: [
        {
          ccount: 4,
          cimg: 'lining/lining1.jpg',
          cname: '李宁',
          cprice: 100,
          csNo: 'C20220726000201',
          cs_no: null,
          csort: '青色少年版',
          ctotalPrice: 400,
          uid: 1
        }
      ]
    }
  },
  methods: {
    search_fun () {
      console.log(this.search_form)
    }
  }
}
</script>

<style lang="less" scoped>
#order_box{
  width: 100%;
  .order_main {
    width: 100%;
    height: 380px;
    overflow: auto;
  }
}
</style>
